package com.dhcc.bpm.modules.api.service.impl;

import com.dhcc.bpm.modules.api.entity.IssueApi;
import com.dhcc.bpm.modules.api.entity.PolicyItemMetadata;
import com.dhcc.bpm.modules.api.mapper.IssueApiMapper;
import com.dhcc.bpm.modules.api.mapper.PolicyItemMetadataMapper;
import com.dhcc.bpm.modules.api.service.IPolicyItemMetadataService;
import com.dhcc.bpm.modules.api.vo.PolicyItemMetadataVO;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title
 * @ClassName PolicyItemMetadataImpl
 * @Desription
 * @Author zhangzexu
 * @Date 2020/12/2 下午5:06
 * @Version V1.0
 */
@Service("opc_policy_item_metadata")
public class PolicyItemMetadataImpl extends BaseServiceImpl<PolicyItemMetadataMapper, PolicyItemMetadata>  implements IPolicyItemMetadataService {
    @Autowired
    PolicyItemMetadataMapper policyItemMetadataMapper;
    @Override
    public List<PolicyItemMetadataVO> selectByPolicyTagId(Long policyTagId) {
        PolicyItemMetadata policyItemMetadata = new PolicyItemMetadata();
        policyItemMetadata.setPolicyTagId(policyTagId);
        return policyItemMetadataMapper.selectByPolicyTagId(policyItemMetadata);
    }
}
